package com.mmall.service;

import com.mmall.common.ServerResponse;
import com.mmall.pojo.User;

/**
 * Created by yanglin on 2019/3/3.
 */
public interface IUserService {


    ServerResponse<User> login(String name, String password);
    ServerResponse<String> register(User user);
    ServerResponse<String> checkValid(String str,String type);
    ServerResponse  selectQuestion(String username);

    ServerResponse<String> checkAnswer(String username,String question ,String answer);

    ServerResponse<String> forgetResetPassword(String username,String passwordNew,String forgetToken);
    ServerResponse<String> resetPassword(String passwordOld,String passwordNew,User user);
    ServerResponse<User> update_information(User user);
    ServerResponse<User> getInformation(Integer userId);
}
